<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:a4j="http://richfaces.org/a4j">

<ui:composition template="/views/templates/main.xhtml">
	<ui:define name="body">
		<style>
.navigation .rf-tab-hdr-brd,.navigation .rf-tab {
	display: none;
}
</style>
		<h:outputStylesheet>
.label {
    font-weight: bold;
}
.rf-dg, .rf-dg-c{
    border:none;
}
.pbody {
    width: 180px;
}
</h:outputStylesheet>
	 		<h:form>
			<rich:panel>
				<f:facet name="header">
					<h:panelGroup>
						<h:outputText value="Transferir dinero" />
					</h:panelGroup>
				</f:facet>
				<h:panelGrid columns="3">
					<h:outputText value="Ingrese su PayPal mail:" />
					<h:inputText value="#{paypalBean.userMail}" id="email" validatorMessage="Formato de mail incorrecto">
						<f:validateRegex
							pattern="^(([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5}){1,25})+([;.](([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5}){1,25})+)*$"></f:validateRegex>
					</h:inputText>
					<rich:message for="email" />
					<h:outputText value="Ingrese monto: #{paypalBean.currency}" />					
					<h:inputText id="amount" value="#{paypalBean.userAmount}" validator="#{paypalBean.validateAmountToTransfer}"/>	
					<rich:message for="amount" />	
					<h:commandButton id="confirmar" type="submit" value="Transferir" action="#{paypalBean.transferAmount}" >
					</h:commandButton>		
				</h:panelGrid>
			</rich:panel>
			<br />
		</h:form>   
</ui:define>
</ui:composition>
</html>